<!-- <%@ page contentType="text/html;charset=UTF-8" language="java" %> -->
<!DOCTYPE html>
<html lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>管理系统管理者提案详细</title>

    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <link href="https://cdn.bootcss.com/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker-standalone.css" rel="stylesheet">

</head>
<body style="background-color:#EEEEEE;">
    <div style="padding: 20px;">
        <div class="container-fluid">
            <div class="row">
                <h1 style="text-align:center;color: #5BA9B8">能力提案文稿管理系统</h1>
                <div class="col-md-12">
                    <p th:text="'你好('+${name}+')'" class="pull-left" style="font-size: 15px"></p>
                    <a th:href="@{/logout}+ '?token=' + *{token}" role="button" class="btn btn-danger pull-right" style="margin-bottom:10px;">注销</a>
                    </p>
                </div> 
                <div class="col-md-3" >
                    <div style="background-color:#FFF;height: 600px;">
                        <div class="list-group">
                              <a href="#" class="list-group-item active">
                                管理者
                              </a>
                            <a th:href="@{/admin/home}+ '?token=' + *{token}" class="list-group-item">主页</a>
                            <a th:href="@{/admin/proposal/search}+ '?token=' + *{token}" class="list-group-item" style="background-color: #ddd">提案列表</a>
                            <a th:href="@{/admin/proposal/create}+ '?token=' + *{token}" class="list-group-item">提案编制</a>
                            <a th:href="@{/admin/recommend/create}+ '?token=' + *{token}" class="list-group-item">推荐会员</a>
                            <a th:href="@{/admin/standard/create}+ '?token=' + *{token}" class="list-group-item">提案编制</a>
                            <a th:href="@{/admin/standard/pass}+ '?token=' + *{token}" class="list-group-item" >平台提案</a>
                            <a th:href="@{/admin/pass}+ '?token=' + *{token}" class="list-group-item" >会员审批</a>
                            <a th:href="@{/admin/proposal/pass}+ '?token=' + *{token}" class="list-group-item">提案审批</a>
                            <a th:href="@{/admin/standard/pass}+ '?token=' + *{token}" class="list-group-item">提案审批</a>
                            <!--分发权限-->
                            <a th:href="@{/admin/add}+ '?token=' + *{token}" class="list-group-item" >添加帮手</a>
                            <a th:href="@{/admin/edit}+ '?token=' + *{token}" class="list-group-item">信息维护</a>
                        </div>
                    </div>
                </div>
                <div class="col-md-9">
                    <div style="background-color:#FFF;  height: 600px;">
                        <div style="background-color:#fff; padding:20px;">
                            <p style="font-size: 25px;font-weight: 600">提案详细</p>
                            <hr>
                            <div class="low">
                                <div style="border:1px solid #aaa;height: 1400px;border-radius: 6px;">
                                <div class="row">
                                    <div class="col-md-6">
                                        <div style="clear: both;margin-top:20px;margin-left:20%">
                                            <p style="float: left;font-weight: 600;font-size: 18px;">提案编号：</p><p th:text="${proposal.id}" id="id" name="id" style="float: left;">12</p>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div style="clear: both;margin-top:20px;margin-left:00%">
                                            <p style="float: left;font-weight: 600;font-size: 18px;">提案名称：</p><p th:text="${proposal.title}" id="name" name="name" style="float: left;">是是是是是是所所所所所所所所所所所是是是</p>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div style="clear: both;margin-top:20px;margin-left:20%">
                                            <p style="float: left;font-weight: 600;font-size: 18px;">提案作者：</p><p th:text="${Wname}" id="writer" name="writer" style="float: left;">李四</p>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div style="clear: both;margin-top:20px;margin-left:0%">
                                            <p style="float: left;font-weight: 600;font-size: 18px;">截止日期：</p><p th:text="${proposal.deadlineat}" id="date" name="date" style="float: left;">1233333</p>
                                        </div>
                                    </div>
                                </div>
                                <div>
                                    <div style="clear: both;margin-top: 20px;font-size: 18px;margin-left: 10%;font-weight: 600">
                                        <p >提案内容：</p>
                                    </div>
                                </div>
                                <div  style="background-color:#FFF;width: 70%;height: 400px;border-radius: 5px;border:1px solid #aaa;margin-left: 19%;font-size: 17px;">
                                    <p th:text="${proposal.content}" id="content" name="content">问问问问无</p>
                                </div>
                                <div>
                                    <div th:case = "true"></div>
                                    <div th:case = "false" >
                                        <div style="border: 1px solid #aaa;width: 100%;margin-top: 30px;"></div>
                                        <div>
                                                <p style="font-size: 25px;margin-top: 10px;font-weight: 600">留言区</p>
                                        </div>
                                        <form th:action ="@{/user/proposal/createPL}+ '?idproposal=' + ${proposal.id} + '&token=' + *{token} " method="post">
                                            <div class="row">
                                                <div class="col-md-6">
                                                    <label style="margin-left: 20%">
                                                        <input type="radio" name="agree-dis" id="agree" value="agree">
                                                        附议
                                                    </label>
                                                    <label style="margin-left: 30%">
                                                        <input type="radio" name="agree-dis" id="disagree" value="disagree">
                                                        反对
                                                    </label>
                                                    <textarea id="discuss" name="comment" maxlength="30" style="width:100%;height: 150px;margin-left: 20%" placeholder="请写下您的评论(不超过30字)"></textarea>
                                                </div>
                                                <div class="col-md-6">
                                                    <div class="row" style="margin-top: 150px;margin-left: 30%">
                                                        
                                                        <input type= "submit" name="MaintainSubmit" id="MaintainSubmit" class="btn btn-primary" value="提交" style="margin-left: 30%">
                                                    </div>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                                <div style="margin-top: 20px;">
                                    <div style="border: 1px solid #aaa;width: 100%;margin-top: 30px;"></div>
                                    <p style="font-weight: 600;font-size: 25px">评论区</p>
                                    <div class="row">
                                        <div class="col-md-4" >
                                            <table class="table table-hover" style="margin-left:33%;">
                                                <tr>  
                                                    <th align="center">评论者</th>
                                                </tr>  
                                                <tr th:each="Aname,iterStat : ${namelist}" >
                                                    <td th:text ="${Aname}" >李四</td>
                                                </tr>
                                            </table>
                                        </div>
                                        <div class="col-md-8">
                                            <table class="table table-hover">
                                                <tr>
                                                    <th align="center">评论内容</th>
                                                </tr>
                                                <tr th:each="proposalcheck,iterStat : ${proposalchecks}" >
                                                    <td th:text ="${proposalcheck.comment}" >号</td>
                                                </tr>
                                            </table>
                                        </div>  
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</body>
</html>